<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>学生信息</title>
</head>
<style>
    body
    {
        line-height: 1.6em;
    }
    #rounded-corner
    {
        font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif;
        font-size: 12px;
        margin: 45px;
        width: 800px;
        text-align: center;
        border-collapse: collapse;
        margin-left: 300px;
        margin-top: 0px;
    }
    #rounded-corner thead th.rounded-company
    {
        background: #b9c9fe url('table-images/left.png') left -1px no-repeat;
    }
    #rounded-corner thead th.rounded-q4
    {
        background: #b9c9fe url('table-images/right.png') right -1px no-repeat;
    }
    #rounded-corner th
    {
        padding: 8px;
        font-weight: normal;
        font-size: 13px;
        color: #039;
        background: #b9c9fe;
    }
    #rounded-corner td
    {
        padding: 8px;
        background: #e8edff;
        border-top: 1px solid #fff;
        color: #669;
    }
    #rounded-corner tfoot td.rounded-foot-left
    {
        background: #e8edff url('table-images/botleft.png') left bottom no-repeat;
    }
    #rounded-corner tfoot td.rounded-foot-right
    {
        background: #e8edff url('table-images/botright.png') right bottom no-repeat;
    }
    #rounded-corner tbody tr:hover td
    {
        background: #d0dafd;
    }
    #insert{
        text-decoration: none;
        color:blue;
    }
    #insert :hover{
        color:#09f;font-size: 19px;
    }
    #delete{
        text-decoration: none;
        color:red;
    }
    #delete :hover{
        color:#09f;font-size: 19px;
    }
    #add{
        margin-left: 300px;
        text-decoration: none;
    }
</style>
<body>
 <table id="rounded-corner">
   <tr>
     <th>学号</th>
     <th>姓名</th>
     <th>年龄</th>
     <th>地址</th>
     <th>密码</th>
       <th colspan="2" >操作</th>
   </tr>
   <tr>
     <tr th:each="list : ${list}">
         <td th:text="${list.sid}"></td>
         <td th:text="${list.sname}"></td>
         <td th:text="${list.sage}"></td>
         <td th:text="${list.saddress}"></td>
         <td th:text="${list.spass}"></td>
         <td><a id="insert" th:href="@{sendsid(sid=${list.sid})}">更新</a></td>
         <td><a id="delete" th:href="@{del(sid=${list.sid})}">删除</a></td>
   </tr>
     <a href="/addPage" id="add">新增</a>
 </table>

</body>
</html>